<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class useRecord extends Model
{
    use SoftDeletes;

    protected $table = 'useRecord';
    //获取用户信息
    public function user()
    {
        return $this->belongsTo(User::class, 'user_id');
    }

    //获取格子信息
    public function grip()
    {
        return $this->belongsTo(Grip::class, 'grip_id','id');
    }

}
